﻿using System.Collections.Generic;
using System.Linq;
using RpcSync.Model.DB;

namespace RpcSync.DAL.Repository
{
    internal class ResourceShieldDAL : IResourceShieldDAL
    {
        private IRpcExtendResource<ResourceShieldModel> _BasicDAL;
        public ResourceShieldDAL(IRpcExtendResource<ResourceShieldModel> dal)
        {
            _BasicDAL = dal;
        }


        public void Delete(Guid[] ids)
        {
            this._BasicDAL.Delete(a => a.ResourceId.HasValue && ids.Contains(a.ResourceId.Value,false));
        }
    }
}
